import { IntersectionType, OmitType, PartialType } from '@nestjs/swagger'
import { ListPaginationDto } from '@/shared/types/globalDto.dto'
import { DetailPage } from '../entities/detail-page.entity'

export class CreateDetailPageDto extends OmitType(PartialType(DetailPage), ['detailPageId', 'createdAt', 'updatedAt']) {}

export class UpdateDetailPageDto extends CreateDetailPageDto {}

export class FindOneDetailPageDto extends PartialType(DetailPage) {}

export class ListPageDetailPageDto extends PartialType(IntersectionType(FindOneDetailPageDto, ListPaginationDto)) {}

export class WebListPageDetailPageDto extends ListPageDetailPageDto {}
